package com.gdut.huayan.service;

import com.gdut.huayan.entity.dto.PageQuery;
import com.gdut.huayan.entity.po.FileSystem;
import com.gdut.huayan.entity.vo.FileUpload;
import com.github.pagehelper.PageInfo;

import java.util.Map;

public interface FileService {

    Map<String, Object> requestUpload(FileUpload fileUpload);

    /**
     * 验证文件是否上传成功（嵌入其他service）
     * @param requestId 请求上传requestUpload的返回结果
     * @return 是否成功
     */
    Long getFileStatus(String requestId,boolean type);

    /**
     * 如果是超级管理员，authFlag就传true
     */
    Map<String, Object> requestUpdate(FileUpload fileUpload, Boolean authFlag);

    void requestUpdateConfirm(String requestId);

    Map<String,Object> requestFile(Long fileId, Long expire, Boolean authFlag);

    void requestDelete(Long fileId, Boolean authFlag);
}
